#ifndef DATA_H
#define DATA_H

#include "utils.h"

typedef struct
{
	double tau;
	double h;
	double m;
	double m2;
	uint32 t;
} data_block;

class data
{
	private:
		uint32 buff_index;
		uint32 buff_size;
		uint32 t;
		data_block * data_buff;
		FILE * out;
		
		int count_M (uint8 *, uint32);

	public:
		data (uint32, char *);
		data (uint32);
		~data ();

		int data_step (uint8 *, uint32, double, double);
		void output (FILE *, data_block *, uint32);
};

#endif // DATA_H
